/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Oscar
 */
public class Asociacion<K,V> {
    
    private K key;
    private V value;
    
    public Asociacion(K key, V value){
        this.key = key;
        this.value = value;
    }
    
    public Asociacion(K key){
        this.key = key;
        this.value = null;
    }
    
    public K getKey(){
        return key;
    }
    
    public V getValue(){
        return value;
    }
    
    public void setKey(K newKey){
        key = newKey;
    }
    
    public void setValue (V newValue){
        value = newValue;
    }
    
}
